//
//  NewsCell.m
//  项目1 CLCMovie
//
//  Created by huiwenjiaoyu on 15/7/21.
//  Copyright (c) 2015年 CLC. All rights reserved.
//

#import "NewsCell.h"
#import "UIImageView+WebCache.h"


@implementation NewsCell

- (void)awakeFromNib {
    

    CGRect rect = _Button.frame;
    rect.size.width = [UIScreen mainScreen].bounds.size.width;
    _Button.frame = rect;
    // Initialization code
}



- (void)layoutSubviews{
    _TitleLabel.text = _newsModal.title;
    CGRect rect = _TitleLabel.frame;
    rect.size.width = self.frame.size.width - 100;
    _TitleLabel.frame = rect;
    
    _DetailLabel.text = _newsModal.detail;
    [_PictureImage sd_setImageWithURL:_newsModal.urlForImage];
    
    if (!_newsModal.type) {
        _signImage.hidden = YES;
        
        CGRect rect = _DetailLabel.frame;
        rect.origin.x = _TitleLabel.frame.origin.x;
        _DetailLabel.frame = rect;
    }
    
    

}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
